package com.titar.robot.http;

import java.util.HashMap;
import java.util.Map;

public class ApiSuccessResponse<T> extends ApiResponse<T> {

    private T body;
    private Map<String, String> links;

    public ApiSuccessResponse(T body, Map<String, String> links) {
        this.body = body;
        this.links = links;
    }

    public ApiSuccessResponse(T body, String linkHeader) {
        this(body, new HashMap<>());
    }

    public T getBody(){
        return body;
    }


}
